package com.abc.genericclass;

public class Demo {
	@SuppressWarnings("unchecked")
	public static void main(String[] args) {
		GenericClass<String> class1 = new GenericClass<String>();
		String printString = class1.printString("你好世界！");
		System.out.println(printString);
		GenericClass<Integer> class2 = new GenericClass<Integer>();
		class2.printString(111);
		
		//不传入类型
		@SuppressWarnings("rawtypes")
		GenericClass class3 = new GenericClass();
		class3.printString("你好啊");
		class3.printString(1111);
	}
}
